/*
 ============================================================================
 Name        : tests.c
 Author      : Piotr Kowalski & Radek Morytko
 Version     :
 Copyright   : 
 Description : Hello World in C, Ansi-style
 ============================================================================
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "fragmentation_test.h"


int main(int argc, char *argv[]) {

	if(argc < 2)
	{
		printf("usage: [fragmentation_test] [params...]");
		exit(EXIT_FAILURE);
	}

	if( ! strcmp( argv[1], "fragmentation_test" ) )
	{
		if(argc < 3)
		{
			printf("usage: fragmentation_test chunk_size");
			exit(EXIT_FAILURE);
		}

		fragmentation_test(atoi(argv[2]));
		sleep(9999);
		exit(EXIT_SUCCESS);
	}

	printf("usage: [fragmentation_test] [params...]");

	return EXIT_FAILURE;
}
